From: Keir Fraser Date: Fri, 2 Jul 2010 18:03:16 +0000 (+0100) Subject: x86: Fix (bogus) use-before-initialise compiler warning. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11846 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=2156299cf0ff74c2b9ee708650bb8e46a4fcfc26;p=xen.git x86: Fix (bogus) use-before-initialise compiler warning. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/mm/hap/p2m-ept.c b/xen/arch/x86/mm/hap/p2m-ept.c index 1334e1e0fb..7c7d0f5130 100644 --- a/xen/arch/x86/mm/hap/p2m-ept.c +++ b/xen/arch/x86/mm/hap/p2m-ept.c @@ -234,7 +234,7 @@ ept_set_entry(struct domain *d, unsigned long gfn, mfn_t mfn, { ept_entry_t *table, *ept_entry; unsigned long gfn_remainder = gfn; - unsigned long offset; + unsigned long offset = 0; u32 index; int i, target = order / EPT_TABLE_ORDER; int rv = 0;